package com.pure.common.bridge;

import com.pure.common.bridge.impl.BridgeAbstractionExtend;
import com.pure.common.bridge.impl.BridgeImplementorImpl;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @description: bridge pattern
 * @date: 2022-05-29 00:15
 * @since 1.2.0
 **/
public class BridgePattern {

    private String username;

    public static void main(String[] args) {

        BridgeImplementor bridgeImplementor = new BridgeImplementorImpl();
        bridgeImplementor.doSomething();

        BridgeAbstractionExtend bridgeAbstractionExtend = new BridgeAbstractionExtend(bridgeImplementor);
        bridgeAbstractionExtend.doWork();

        Map<String, Object> map = new ConcurrentHashMap<>();
    }

}
